package com.huang.manage.controller;

import com.huang.entity.result.HStringResult;
import com.huang.entity.result.ResultBuilder;
import com.huang.manage.service.impl.TestService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author Swinboo
 * @date 2022-03-13 12:17
 * @description:
 */

@RestController
public class TestController {
    @Resource
    private TestService testService;
    @GetMapping("/manage/test")
    public HStringResult<String> test(){
        String test = testService.test();
        return ResultBuilder.successHSingle("success");
    }
    @GetMapping("/manage/test2")
    public HStringResult<String> test2(){
        String test = testService.test2();
        return ResultBuilder.successHSingle("success");
    }
}
